package grape.composite.rest.activity.form;

import grape.common.rest.form.BaseUpdateForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 活动表
 * </p>
 *
 * @author yangwei
 * @since 2020-08-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="活动更新发布表单对象")
public class ActivityUpdateIsPublishedForm extends BaseUpdateForm {

    private static final long serialVersionUID = 1L;

    @NotNull(message="是否发布不能为空")
    @ApiModelProperty(value = "是否发布",required = true)
    private Boolean isPublished;

    @NotEmpty(message = "原因不能为空")
    @ApiModelProperty(value = "发布/取消发布原因",required = true)
    private String publishedReason;


}
